package com.cloudcc.mobile.parser;

import org.json.JSONException;
import org.json.JSONObject;

import com.cloudcc.mobile.util.Tools;

public class PushParser {
	/**
	 * 解析设备注册返回的数据
	 */
	public static boolean getResult(String jsonString){
		boolean result = false;
		try {
			JSONObject obj=new JSONObject(jsonString);
			result=obj.getBoolean("result");
		} catch (JSONException e) {
			Tools.handle(e);
		}
		return result;
	}
}
